package top.tocchen.bookshop.dao;

import org.apache.ibatis.annotations.Mapper;
import top.tocchen.bookshop.entity.CategoryEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryDao {
    int deleteByPrimaryKey(Integer id);

    int insert(CategoryEntity record);

    int insertSelective(CategoryEntity record);

    CategoryEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CategoryEntity record);

    int updateByPrimaryKey(CategoryEntity record);

    List<CategoryEntity> findAll();

    CategoryEntity categoryfindById(Integer categoryid);
}